{{classVarName}}Decoder : Decoder {{classname}}
{{classVarName}}Decoder =
    decode {{classname}}
{{#allVars}}{{^discriminatorValue}}        |> {{>fieldDecoder}}
{{/discriminatorValue}}{{/allVars}}